import axios from '../plugins/axios'
export default {
  // 查询分组
  getGroupList: () => {
    return axios.get(`/tcb/`)
  },
  // 新增分组
  addGroup: (data:{value:string,id:string,children?: string[]}) => {
    return axios.post(`/tcb/`, data)
  },
  // 删除分组
  delGroup: (id:string) => {
    return axios.delete(`/tcb/${id}`)
  },
  // 更新分组
  updateGroup: (data:{value:string,id:string,children?: any[]}) => {
    return axios.put(`/tcb/`, data)
  },
}